import { check } from '@/utils/auth.js'

function Authorized (props, { slots }) {
  return check(props.permissions) ? slots.default() : null
}

export default Authorized